﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JinJun.YShow.Core;
using JinJun.YShow.Model;
using Newtonsoft.Json;

namespace JinJun.YShow.Romote
{
  public  class MenaApi
    {
        public  List<Menu> Getmenuapi(string modulename)
        {
            string url = ConfigurationManager.AppSettings["apiUrl"] + "/api/menu?moduleName=歪秀";
            string result = HttpHelper.PostJson(url, string.Empty);
            List<Menu> me = JsonConvert.DeserializeObject<List<Menu>>(result);

            return me;
        }
    }
}
